﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditLines.aspx.cs" ValidateRequest="false" Inherits="NJL.WebManage.Lines.EditLines" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <script type="text/javascript"src="/ckeditor/ckeditor.js"></script>
         <script type="text/javascript" language="javascript">
             function checkCode() {
                 //页面描述
                 var txtAttractionsTitle = document.getElementById("<%=txtAttractionsTitle.ClientID %>").value;
                 if (txtAttractionsTitle == "") {
                     alert("请输入线路标题");
                     return false;
                 }
                 var txtAttractionFtitle = document.getElementById("<%=txtAttractionFtitle.ClientID %>").value;
                 if (txtAttractionFtitle.length > 400) {
                     alert("副标题不能超过400个字符");
                     return false;
                 }
                 var txtDescription = document.getElementById("<%=txtDescription.ClientID %>").value;
                 if (txtDescription.length > 100) {
                     alert("页面描述内容数超过100个字符请重新输入");
                     return false;
                 }
             }
      
      
      </script>
</head>
<body>
    <form id="form1" runat="server">
   <div class="gray_bd">
        <div class="table_title">
            线路管理-编辑线路
              <%
                                
                            if (WEBSITE_CODE == "1")
                            {
                                
                                    %>
                                 <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<%=Request.QueryString["QQ"] %>&site=qq&menu=yes">
                                            <img border="0" src="http://wpa.qq.com/pa?p=2:<%=Request.QueryString["QQ"] %>:45" alt="点击这里给我发消息"
                                                title="点击这里给我发消息"></a>
                                                <%
                            }
                                             %>
            </div>
        <div class="pad5px">
            <table align="center" cellspacing="0" style="width:100%">
                <tr>
                    <td style="width:120px; text-align:right;">
                        标题：
                    </td>
                    <td>
                        <asp:TextBox ID="txtAttractionsTitle" runat="server" Width="400px" MaxLength="50"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width:120px; text-align:right;">
                        副标题：
                    </td>
                    <td>
                         <asp:TextBox ID="txtAttractionFtitle" runat="server" Width="447px" 
                             Height="79px" TextMode="MultiLine"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width:120px; text-align:right;">
                        标签：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTag" runat="server" Width="400px" MaxLength="100"></asp:TextBox>
                        多个标签请用逗号隔开
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                       <tr>
                    <td style="width: 120px; text-align: right;">
                        图片：&nbsp;
                    </td>
                    <td>
              <asp:FileUpload ID="FileUpload1" runat="server" />&nbsp;&nbsp;<asp:Button ID="Button1" runat="server" Text="上传" OnClick="btnUpload_Click" /> 请上传600*450尺寸以内的图片
                    </td>                        
                    <td>
                        
                        &nbsp;
                    </td>
                </tr>
                      <tr>
                    <td style="width: 120px; text-align: right; vertical-align: bottom">
                        现有图片：
                    </td>
                    <td>
                        <asp:Image ID="Image1" runat="server" />
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td style="width:120px; text-align:right;">
                        内容：
                    </td>
                    <td>
                     <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Height="61px" Width="100%"></asp:TextBox>
                        <script type="text/javascript">
                            CKEDITOR.replace('<%=txtContent.ClientID%>',
                            {
                                filebrowserBrowseUrl: '/ckfinder/ckfinder.html', //启用浏览功能
                                filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?Type=Images',
                                filebrowserFlashBrowseUrl: '/ckfinder/ckfinder.html?Type=Flash',
                                filebrowserUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files',
                                filebrowserImageUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images',
                                filebrowserFlashUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'
                            }
                            );
                        </script> 
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width:120px; text-align:right;">
                        页面标题：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="100%" MaxLength="100"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width:120px; text-align:right;">
                        页面关键字：
                    </td>
                    <td>
                        <asp:TextBox ID="txtKeyWords" runat="server" Width="100%" MaxLength="100"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width:120px; text-align:right;">
                        页面描述：
                    </td>
                    <td>
                        <asp:TextBox ID="txtDescription" runat="server" Height="51px" TextMode="MultiLine"
                            Width="100%"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Style="height: 21px"
                            Text="提交" Width="40px" OnClientClick="return checkCode()" />
                        &nbsp;<input id="Reset1" type="reset" value="返回" onclick="location.href='LinesManage.aspx'" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
